import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/api/contract/list',
    method: 'get',
    params: query
  })
}



export function del(id) {
  return request({
    url: '/api/contract/del',
    method: 'get',
    params: { id }
  })
}

export function makePic(id) {
  return request({
    url: '/api/contract/make_pic',
    method: 'get',
    params: {
      id:id
    }
  })
}

export function makePng(id) {
  return request({
    url: '/api/contract/make_png',
    method: 'get',
    params: {
      id:id
    }
  })
}
export function bindSpecial(data,id) {
  return request({
    url: '/api/contract/batch_special',
    method: 'post',
    data: {
      data:data,
      id:id
    }
  })
}

export function update(data) {
  return request({
    url: '/api/contract/update',
    method: 'post',
       data
  })
}

